package com.yunduo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunduo.entity.Log;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LogMapper extends BaseMapper<Log> {
    //查找最近日期内的日志个数
    List<Log> selectUserLoginLog(@Param("event") String event,@Param("day") Integer day);

    //按业务名查找业务值
    List<String> selectLogByName(@Param("name") String name);

    //根据业务名和业务值删除数据
    boolean deleteLogByEventAndResult(@Param("event") String event,@Param("result") String result);


    //根据业务名和业务值查找
    Log selectLogByEventAndResult(@Param("event") String event,@Param("result") String result);
}
